#!/bin/bash

ansible web -m shell -a "podman run --name web -d -v /opt/WebData:/usr/local/apache2/htdocs:z -p 8899:80 docker.io/library/httpd"
ansible web -m shell -a "cd /etc/systemd/system/;
podman generate systemd --name web --files"
ansible web -m shell -a "systemctl daemon-reload;systemctl start container-web.service;systemctl enable container-web.service;loginctl enable-linger;"
